package cn.hdu.liang.mapper;

import cn.hdu.liang.po.User;
import cn.hdu.liang.po.UserCustom;
import cn.hdu.liang.po.UserQueryVo;

import java.sql.SQLException;
import java.util.List;

public interface UserMapper {

    public List<UserCustom> findUserList(UserQueryVo userQueryVo) throws SQLException;

    public List<UserCustom> findUserCount(UserQueryVo userQueryVo) throws SQLException;

    public User findUserById(int id) throws SQLException;

    public List<User> findUserByName(String name) throws SQLException;

    public void insertUser(User user) throws SQLException;

    public void deleteUser(int id) throws SQLException;

    public void updateUser(User user) throws SQLException;
}
